#ifndef DRIVERWIDGET_H
#define DRIVERWIDGET_H

#include <QWidget>
#include <QStackedWidget>
#include <QList>

class QDriveBar;
class QAbstractDrive;

class DriverWidget : public QWidget
{
    Q_OBJECT
public:
    explicit DriverWidget(QWidget *parent = 0);

signals:

public slots:
    void    addWidget(int index);
    void    showWidget(int index);

    void    remove();

    void    projectOpen();
    void    projectClose();

    void    addValue();
    void    removeSelectValue();
protected:
    QDriveBar   *m_driveBar;
    QStackedWidget  *m_driveWidget;
    QList<QWidget*>  m_widgets;
};

#endif // DRIVERWIDGET_H
